<div class="view">

	<?php
	if (!Yii::app()->user->isGuest) {
		$baseUrl = Yii::app()->request->baseUrl . '/images/fugue';
		$properties = array(
			'items'=>array(
				array(
					'label'=>"<img src=\"$baseUrl/magnifier.png\" />",
					'url'=>array('view', 'id'=>$data->_id),
					'linkOptions'=>array('title'=>'View'),
				),
				array(
					'label'=>"<img src=\"$baseUrl/pencil.png\" />",
					'url'=>array('update', 'id'=>$data->_id),
					'linkOptions'=>array('title'=>'Update'),
				),
			),
			'htmlOptions'=>array(
				'class'=>'operations',
			),
			'encodeLabel'=>false,
		);
		$this->widget('zii.widgets.CMenu', $properties);
	}
	?>

	<b><?php echo CHtml::encode($data->getAttributeLabel('province')); ?>:</b>
	<?php echo CHtml::encode($data->province); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('sector')); ?>:</b>
	<?php echo CHtml::encode($data->sector); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('status')); ?>:</b>
	<?php echo CHtml::encode($data->status); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('file')); ?>:</b>
	<?php
	$url = $data->fileBehavior->fileUrl;
	echo $url ? CHtml::link('Download', $url) : '-';
	?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('note')); ?>:</b><br />
	<?php
	$format = Yii::app()->format;
	echo $format->formatNText(CHtml::encode($data->note));
	?>

</div>